package com.gxa.customer.controller;

import com.gxa.common.commons.R;
import com.gxa.customer.service.FieldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/customer/field")
public class FieldController {
    @Autowired
    private FieldService fieldService;

    //查询所有领域
    @GetMapping(value = "/selectAllField")
    public R selectAllField(){
        return fieldService.selectAllField();
    }
}
